package xin.yangshuai.basic01.str;

/**
 * StringFunction
 *
 * @author shuai
 * @date 2023/2/24
 */
public class StringFunction {

    public static void main(String[] args) {
        String s = "1234_qwer_asdf_zxcv";
        int i = s.lastIndexOf("qwer");
        System.out.println(i);
        String substring = s.substring(0,i);
        System.out.println(substring);
    }
}
